package com.pacai.homework;

/**
 * @author pacai
 * @version 1.0
 */
public class HomeWork01 {
    public static void main(String[] args) {
        double[] arr = {1,4,76,13,234};
        A01.max(arr);
    }
}

@SuppressWarnings("all")
class A01{
    public static double max(double[] arr){
        double max = arr[0];
        for (int i = 1; i < arr.length; i++) {
            if(max < arr[i]){
                max = arr[i];
            }
        }
        return max;
    }

}